package com.tanhua.server.controller;

import com.tanhua.server.service.TestSoulService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.lang.reflect.InvocationTargetException;

@RequestMapping
@RestController
public class TestSoulController {

    @Autowired
    private TestSoulService testSoulService;

    @GetMapping("/testSoul")
    public ResponseEntity<Object> showQuestion() throws InvocationTargetException, IllegalAccessException {
        return testSoulService.showQuestion();
    }
}
